import { postMethod, getMethod } from "../../../utils/http";

export async function getList(schoolId, current, pages) {
    return await postMethod(`xyxy/wxapp/web/blog/officialBlogList`, {
        params: {
            schoolId,
            current,
            pages,
        }
    });
}
export async function getSchoolList() {
    return await postMethod(`xyxy/wxapp/web/school/list`, {});
}


export async function add(data = {}) {
    return await postMethod(`xyxy/wxapp/web/blog/save`, {
        params: {
            userId:"1",
            cate:'校园官方',
            ...data,
        }
    });
}

export async function queryItem(id) {
    return await postMethod(`xyxy/wxapp/web/blog/view?id=${id}`, {});
}

export async function edit(data) {
    return await postMethod(`xyxy/wxapp/web/banner/edit`, {
        params: {
            ...data,
        }
    });
}

export async function del(id) {
    return await postMethod(`xyxy/wxapp/web/banner/del?id=${id}`, {

    });
}

// 

